<template>
	<view>
	</view>
</template>

<script>
	import { mapState } from 'vuex';
	export default {
		computed: {
			...mapState(['userInfo'])
		},
		methods: {
		},
		onLoad() {
			if (Object.keys(this.userInfo).length) {
				uni.reLaunch({
					url: '../index/index',
					success: res => {},
					fail: () => {},
					complete: () => {}
				});
			} else {
				uni.reLaunch({
					url: './login',
					success: res => {},
					fail: () => {},
					complete: () => {}
				});
			}
		}
	}
</script>

<style>
</style>
